
/*****联动配置 2017-06-08**************/
cBoard.controller('linkageCtrl', function ($scope, $http, ModalUtils, $filter) {
    var translate = $filter('translate');


    function getList(){
        $http.get("admin/getWidgetLinkList.do").success(function(response) {
            $scope.list =response;
        });
    }
    getList();
    $scope.delete=function(id){
        ModalUtils.confirm("确定要删除吗？", null, null, function(){
            $http.post("admin/deleteWidgetLink.do",{"id":id}).success(function(response) {
                if(response.status==1){
                    getList();
                }else{
                    ModalUtils.alert(response.msg, "modal-danger", "lg");

                }
            });
        },function(){

        })


    }
});
